package cc.mrbird.febs.system.service;


import cc.mrbird.febs.common.entity.DrawlingTree;
import cc.mrbird.febs.common.entity.QueryRequest;
import cc.mrbird.febs.system.entity.Drawing;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  Service接口
 *
 * @author MrBird
 * @date 2019-07-10 18:56:56
 */
public interface IDrawingService extends IService<Drawing> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param drawing drawing
     * @return IPage<Drawing>
     */
    IPage<Drawing> findDrawings(QueryRequest request, Drawing drawing);


    /**
     * 查询（所有）
     *
     * @param drawing drawing
     * @return List<Drawing>
     */
    List<Drawing> findDrawings(Drawing drawing);

    /**
     * 新增
     *
     * @param drawing drawing
     */
    void createDrawing(Drawing drawing);

    /**
     * 修改
     *
     * @param drawing drawing
     */
    void updateDrawing(Drawing drawing);

    /**
     * 删除
     *
     * @param drawing drawing
     */
    void deleteDrawing(Drawing drawing);

    /**
     * 获取部门列表（树形列表）
     *
     * @param dept 部门对象（传递查询参数）
     * @return 部门树
     */
    List<DrawlingTree<Drawing>> findDrawingsTrees(Drawing dept);

    /**
     * 批量删除
     * @param ids
     * @return
     */

    int batchDelete(String[] ids);
}
